<div class="row">
                        
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                <div class="icon"><i class="icon20 i-stack-list"></i></div>
                <h4><?= trans('title_form_create') ?></h4>
                <a href="#" class="minimize"></a>
            </div><!-- End .panel-heading -->
        
            <div class="panel-body">
                
                <form id="form" class="form-horizontal" role="form" method="post" enctype="multipart/form-data">

                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?= trans('title_page_name') ?></label>
                        <div class="col-lg-10">
                            <input type="text" class="required form-control" name="page_name" value="<?= isset($_POST['page_name']) ? $_POST['page_name'] : '' ?>">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?= trans('title_page_name_large') ?></label>
                        <div class="col-lg-10">
                            <input type="text" class="required form-control" name="page_name_large" value="<?= isset($_POST['page_name_large']) ? $_POST['page_name_large'] : '' ?>">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?= trans('title_page_url') ?></label>
                        <div class="col-lg-10">
                            <input type="text" class="required form-control" name="page_url" value="<?= isset($_POST['page_url']) ? $_POST['page_url'] : '' ?>">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?= trans('title_page_key') ?></label>
                        <div class="col-lg-10">
                            <input type="text" class="required form-control" name="page_key" value="<?= isset($_POST['page_key']) ? $_POST['page_key'] : '' ?>">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?= trans('title_page_description') ?></label>
                        <div class="col-lg-10">
                            <textarea name="page_description" class="form-control" rows="3"><?= isset($_POST['page_description']) ? $_POST['page_description'] : '' ?></textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?= trans('title_page_order') ?></label>
                        <div class="col-lg-10">
                            <input type="text" class="required form-control" name="order" value="<?= isset($_POST['order']) ? $_POST['order'] : '' ?>">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?= trans('title_art_title') ?></label>
                        <div class="col-lg-4">
                            <select class="select2" name="art_id" id="article">
                                <option></option>
                                <?php
                                    foreach($article as $art){
                                        echo '<option value="'.$art['art_id'].'">'.$art['art_title'].'</option>';
                                    }
                                ?>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?= trans('title_switch_gallery') ?></label>
                        <div class="col-lg-10">
                            <div class="switch" data-on="primary" data-off="danger"><input class="toggle" type="checkbox" name="switch_gallery" /> </div>
                        </div>
                    </div>

                    <div class="form-group chooseGallery">
                        <label class="col-lg-2 control-label"><?= trans('title_gallery_name') ?></label>
                        <div class="col-lg-4">
                            <select class="select2" name="gallery_id" id="gallery">
                                <option></option>
                                <?php
                                    foreach($gallery as $gal){
										echo ' <optgroup label="'.$gal['name'].'">';
										foreach($gal['items'] as $item){
											echo '<option value="'.$item['gallery_id'].'">'.$item['gallery_name'].'</option>';
										}
										echo ' </optgroup>';
                                    }
                                ?>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-lg-2 control-label"><?= trans('title_upload') ?></label>
                        <div class="col-lg-10">
                            <input type="file" name="background">
                        </div>
                    </div>

                    
                <div class="clear"></div>

                    <div class="form-group">
                        
                        <div class="col-lg-offset-2">
                            <div class="pad-left15">
                                <button type="submit" class="btn btn-primary"><?= trans('btt_save') ?></button>
                                <button type="button" class="btn"><?= trans('btt_cancel') ?></button>
                            </div>
                        </div>
                    </div>
        
                </form>

            </div><!-- End .panel-body -->
        </div><!-- End .widget -->
    </div><!-- End .col-lg-6  -->
</div>